<template>
  <el-form>
    <el-form-item :label="$t('profile.name')">
      <el-input v-model.trim="user.name" disabled />
    </el-form-item>
    <el-form-item :label="$t('profile.email')">
      <el-input v-model.trim="user.email" disabled />
    </el-form-item>
    <el-form-item>
      <!--<el-button type="primary" @click="submit">
        {{ $t('profile.update') }}
      </el-button>-->
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: {
    user: {
      type: Object,
      default: () => {
        return {
          name: '',
          email: ''
        }
      }
    }
  },
  methods: {
    submit() {
      this.$message({
        message: 'User information has been updated successfully',
        type: 'success',
        duration: 5 * 1000
      })
    }
  }
}
</script>
